package com.example.bankmanage.entity;

import com.example.bankmanage.constant.StatusCards;
import com.example.bankmanage.serialize.PhoneDesensitizationSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.sql.Date;

@SuppressWarnings("all")
@Data
/**
 * 银行卡表
 */
//@TableName("t_cards")
public class cards {
    private Integer cardId;
    private Integer accountId;
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String cardNumber;
    StatusCards cardType; // enum('DEBIT','CREDIT')
    private Date expiryDate;//到期日期
    private String cvv;
    private Date issueDate;
    StatusCards status; //ENUM('ACTIVE', 'EXPIRED', 'LOST', 'STOLEN', 'CANCELLED') DEFAULT 'ACTIVE',
    private Double dailyLimit;
}
